package io.renren.softpark.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunlong.common.utils.PageUtils;
import io.renren.softpark.dto.AddSoftwareDto;
import io.renren.softpark.dto.SoftwareDto;
import io.renren.softpark.dto.VerifySoftwareDto;
import io.renren.softpark.entity.SoftwareEntity;
import io.renren.softpark.form.SoftwareUpdateForm;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author Cui
 * @email ${email}
 * @date 2020-08-14 09:24:18
 */
@Component("SoftwareService")
public interface SoftwareService extends IService<SoftwareEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<VerifySoftwareDto> verifyColumn(Map<String, Object> params);

    List<AddSoftwareDto> listTree();

    /**
     * 根据软件id返回软件的详细信息
     * @param softId
     * @return
     */
    SoftwareDto getDetailData(String softId);

    /**
     * 根据前端传递的软件详细信息进行更新
     * @param softwareUpdateForm
     */
    void updateDetailData(SoftwareUpdateForm softwareUpdateForm);

    List<VerifySoftwareDto> judgeVerify(List<VerifySoftwareDto> data);
}

